
<%@ page import="com.dbb.OrderInfo" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'orderInfo.label', default: 'OrderInfo')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-orderInfo" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-orderInfo" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list orderInfo">
			
				<g:if test="${orderInfoInstance?.buyer}">
				<li class="fieldcontain">
					<span id="buyer-label" class="property-label"><g:message code="orderInfo.buyer.label" default="Buyer" /></span>
					
						<span class="property-value" aria-labelledby="buyer-label"><g:link controller="contact" action="show" id="${orderInfoInstance?.buyer?.id}">${orderInfoInstance?.buyer?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${orderInfoInstance?.code}">
				<li class="fieldcontain">
					<span id="code-label" class="property-label"><g:message code="orderInfo.code.label" default="Code" /></span>
					
						<span class="property-value" aria-labelledby="code-label"><g:fieldValue bean="${orderInfoInstance}" field="code"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${orderInfoInstance?.contact}">
				<li class="fieldcontain">
					<span id="contact-label" class="property-label"><g:message code="orderInfo.contact.label" default="Contact" /></span>
					
						<span class="property-value" aria-labelledby="contact-label"><g:link controller="contact" action="show" id="${orderInfoInstance?.contact?.id}">${orderInfoInstance?.contact?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${orderInfoInstance?.deliveryDate}">
				<li class="fieldcontain">
					<span id="deliveryDate-label" class="property-label"><g:message code="orderInfo.deliveryDate.label" default="Delivery Date" /></span>
					
						<span class="property-value" aria-labelledby="deliveryDate-label"><g:formatDate date="${orderInfoInstance?.deliveryDate}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${orderInfoInstance?.fromCity}">
				<li class="fieldcontain">
					<span id="fromCity-label" class="property-label"><g:message code="orderInfo.fromCity.label" default="From City" /></span>
					
						<span class="property-value" aria-labelledby="fromCity-label"><g:fieldValue bean="${orderInfoInstance}" field="fromCity"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${orderInfoInstance?.items}">
				<li class="fieldcontain">
					<span id="items-label" class="property-label"><g:message code="orderInfo.items.label" default="Items" /></span>
					
						<g:each in="${orderInfoInstance.items}" var="i">
						<span class="property-value" aria-labelledby="items-label"><g:link controller="item" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${orderInfoInstance?.orderDate}">
				<li class="fieldcontain">
					<span id="orderDate-label" class="property-label"><g:message code="orderInfo.orderDate.label" default="Order Date" /></span>
					
						<span class="property-value" aria-labelledby="orderDate-label"><g:formatDate date="${orderInfoInstance?.orderDate}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${orderInfoInstance?.payment}">
				<li class="fieldcontain">
					<span id="payment-label" class="property-label"><g:message code="orderInfo.payment.label" default="Payment" /></span>
					
						<span class="property-value" aria-labelledby="payment-label"><g:fieldValue bean="${orderInfoInstance}" field="payment"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${orderInfoInstance?.supplier}">
				<li class="fieldcontain">
					<span id="supplier-label" class="property-label"><g:message code="orderInfo.supplier.label" default="Supplier" /></span>
					
						<span class="property-value" aria-labelledby="supplier-label"><g:link controller="contact" action="show" id="${orderInfoInstance?.supplier?.id}">${orderInfoInstance?.supplier?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${orderInfoInstance?.id}" />
					<g:link class="edit" action="edit" id="${orderInfoInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
